﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="web.Manage.login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登陆管理后台</title>
    <link type="text/css" rel="stylesheet" href="/Manage/images/web.css" />
    <style type="text/css">
        body { background: #eee; color: #fff; overflow: hidden; }
        table { position: absolute; left: 50%; top: 50%; margin: -135px 0px 0px -167px; border: 5px #ccc solid; padding: 30px; border-radius: 4px; background: #fff; }
        table td { padding: 5px 0px; color: #666; text-align: right; }
        input[type="text"], input[type="password"] { padding: 10px 10px; color: #666; float: left; width: 200px; }
        input[type="submit"] { padding: 15px 30px; background: #DB562D; }
        input[type="checkbox"] { float: left; margin-top: 1px; }
        label { float: left; margin-left: 5px; }
        table td img { cursor: pointer; float: left; margin:8px 0px 0px 10px; }
        table td span { float: right; color: red; }
    </style>
    <script type="text/javascript" src="/scripts/jquery-2.0.2.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <td>用户：</td>
                    <td>
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>密码：</td>
                    <td>
                        <asp:TextBox ID="txtPwd" TextMode="Password" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td>验证码：</td>
                    <td>
                        <asp:TextBox ID="txtCode" Width="50px" MaxLength="4" style="text-align:center;" runat="server"></asp:TextBox><img alt="点击换一张" title="点击换一张" src="/api/validatecode/img.ashx" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="Button1" runat="server" Text="登录" OnClick="Button1_Click" /></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblmsg" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </form>
    <script type="text/javascript">
        $("img").click(function () {
            $(this).attr("src", "/api/validatecode/img.ashx?t=" + (new Date()).valueOf());
        });
    </script>
</body>
</html>
